from django.urls import path, re_path
from honse.views.cityarea import CityAreaDetailView, CityAreaView
from honse.views.User import UserDetailView, UserView
from honse.views.House import HouseDetailView, HouseView
from honse.views.Contract import ContractDetailView, ContractView

from honse.views.RentBill import RentBillDetailView, RentBillView
from honse.views.MeterReading import MeterReadingDetailView, MeterReadingView
from honse.views.Reminder import ReminderDetailView, ReminderView


urlpatterns = [
    path("cityareas/", CityAreaView.as_view()),
    re_path("cityareas/(?P<pk>\d+)", CityAreaDetailView.as_view()),

    path("user/", UserView.as_view()),
    re_path("user/(?P<pk>\d+)", UserDetailView.as_view()),

    path("house/", HouseView.as_view()),
    re_path("house/(?P<pk>\d+)", HouseDetailView.as_view()),

    path("contract/", ContractView.as_view()),
    re_path("contract/(?P<pk>\d+)", ContractDetailView.as_view()),

    path("rentBills/", RentBillView.as_view()),
    re_path("rentBills/(?P<pk>\d+)", RentBillDetailView.as_view()),

    path("meterReadings/", MeterReadingView.as_view()),
    re_path("meterReadings/(?P<pk>\d+)", MeterReadingDetailView.as_view()),

    path("reminder/", ReminderView.as_view()),
    re_path("reminder/(?P<pk>\d+)", ReminderDetailView.as_view()),
]